package com.wngbms.guava;

import lombok.extern.slf4j.Slf4j;

import java.util.List;

@Slf4j
public class Consumer implements Runnable {
    List<String> data;

    public Consumer(List<String> data) {
        this.data = data;
    }

    @Override
    public void run() {
        while (data.size() > 0) {

            log.info(data.get(0));
        }
    }
}
